{template common/header}
<div class="container mb20 clearfix">
	<form id="social_register_form" class="form-horizontal border-from" action="{url social/bind}" method="post">
	<h2>{lang social_login_page}</h2>
	<input type="hidden" name="vendor" value="{$social_user_info['vendor']}"/>
	  <div class="control-group">
	    <label class="control-label" for="avatar">{lang avatar}</label>
	    <div class="controls">
	      	<img src="{$social_user_info['avatar']}" class="avatar photo-middle"/>
			<p class="help-block">{lang this_is_your}{$social_user_info['vendor']}{lang avatar}</p>
	    </div>
	  </div>
	  <div class="control-group">
	    <label class="control-label" for="nickname">{lang user_nickname}</label>
	    <div class="controls">
	      	<input id="nickname" type="text" name="nickname" value="{$social_user_info['screen_name']}" remote="{url user/nicknamecheck}" remote-error="{lang 500_nickname_existed:tip}" not-valid="{lang 500_nick_not_valid:tip}"/>
			<p class="help-block">{lang nick_not_valid}</p>
	    </div>
	  </div>
	  <div class="control-group">
	    <div class="controls">
	      <button type="submit" class="btn btn-danger submit-btn" data-loading-text="{lang tip_loading}">{lang active}</button>
	    </div>
	  </div>
	</form>
</div>
{template common/footer}